home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Risc World Words - Complete RISC World 1 to 6
/
Risc World Words - Complete RISC World 1 to 6.iso
/
!RISCWorld
/
Utilities
/
!CDFix
/
!HELP
next >
Wrap
Text File
|
1999-03-04
|
5KB
|
141 lines
!CDFix (v1.57 5/03/99)
~~~~~~~~~~~~~~~~~~~~~~
This little application is designed to fix various flaws within Acorns CDFS
filing system. It works by ripping the exisitng CDFS module out of the RMA,
patching it, and writing it back. In the process of doing this, the module
grows by about 128 bytes.
The bugs fixed are:
* Filetypes:
CDFS contains a routine that maps file extensions to filetypes.
Unfortunately this routine is broken due to a typo. This program
reassembles working code over the top of the old version.
* Opaque Files:
CDs can contain "Opaque files". These are special files which are
usually associated with ordinary files on the CD. These are
explained below in more detail. This program patches CDFS so as to
allow them to be accessed by replacing occurences of "/" with "_".
Both of these bugs are to be fixed in a future release of CDFS by Acorn, but
this is intended as a stopgap measure. We also allow:
* Spaces in Filenames:
CDs with spaces in filenames now have these transparently changed to
having <160>'s instead (i.e. hard-spaces). This means that these
files can be accessed as normal.
A debt of Gratitude is owed to Martin Sperl and Mike Martin who wrote the
original Filetypes/CD_Type program on which this is based. Thanks are also
due to Ian Fry who has added various other useful tweaks including allowing
for 'illegal' characters in disc volume titles, Bob Pardoe for spotting
some we missed, and to Alex Thoukydides for adding CD-Extra support.
I will endeavour to keep the latest version of this software on-line as:
ftp://ftp.comlab.ox.ac.uk/tmp/Robin.Watts/CDFix.zip
Opaque Files:
~~~~~~~~~~~~~
In the mad mad world of apples, files are generally split into two sections
or "forks". One fork is known as the data fork and contains (for instance)
the compressed frames of a movie, or the image data for bitmaps. The other
is known as the resource fork, and contains information on how to interpret
the data fork, for instance where the frames start, what speed they should
be played back at, what compression type they use etc.
These are stored on CDs as separate files, with the same names. They are
differentiated by the resource fork having the "Opaque" bit set.
Unfortunately on RISC OS this means that the Filer window shows two
identically named files. As soon as you try to access one of them, it is
always the first of the pair that is actually accessed. Typically this means
you can only get to the resources for a file, and not the data itself (in
fact it can be ther other way round, but either way is useless).
As a blatent hack to get around this problem, CDFix patches CDFS to rewrite
any "/" in an opaque files filename as "_". Thus if you have a file
"FRED/MOV" on a CD, you will now see "FRED_MOV" and "FRED/MOV".
I wrote this application so as to allow MovieFS to run transparently from CD.
Versions of MovieFS now automatically detect the dual files and use them
transparently.
Distribution:
~~~~~~~~~~~~~
This application may be freely distributed via the Internet, as long as if
placed on Web pages, a pointer back to the original site is always included.
It may also be copied for NO charge off the Internet, but it may not be
distributed for any fee (even a media or copying charge) without contacting
the author first. It is specifically forbidden to put this application on
a CD ROM or Magazine cover disc without getting permission first.
[These conditions may seem draconian, but I have several times found old
out-of-date versions being distributed where the latest version should have
gone out instead.]
Contact Addresses:
~~~~~~~~~~~~~~~~~~
I can be contacted at:
Robin Watts
Warm Silence Software,
P.O.Box 28,
Woodstock,
Oxon, OX20 1XX
Tel: 0585 487642 (and yes, that is 0585, not 01585)
Email: Robin.Watts@wss.co.uk
Martin Sperl (who wrote the original !Filetypes) can be contacted at:
Martin Sperl,
Nattergasse 12/32
A-1170 Vienna
Austria
Fido: 2:313/16.6
Email: Sperl@Astro1.auniw.ac.at
I do not have a contact address for Mike Martin other than "Softcorn".
History:
~~~~~~~~
Version 1.00: 4/11/95
Base release version.
Version 1.01: 2/3/96
Bug fixed with short extensions.
Version 1.50: 17/6/96
Really fixed short extensions.
Added DOSmapping and File$Type setting along with REMs.
Fixed spaces in filenames.
Version 1.51: 4/10/96
Added 2.29 support (untested)
Version 1.55: 15/05/96
Added 2.30 support (untested)
Version 1.56: 3/3/97
Changed to ignore errors while issuing DOSMAPs.
Version 1.57: 5/3/97
Sets CDFix$Dir on startup.
[More changes in the !RunImage comments]
[If this all scrolled past too fast, load an editor first. If the editor
displays TABs as [09] then get a copy of real editor like !Zap.]